package cn.edu.ldu.controller;

import cn.edu.ldu.entity.ChatHistoryEntity;

import java.util.ArrayList;
import java.util.List;

public class ChatHistoryController {
    private static List<ChatHistoryEntity> chatHistory;

    //聊天记录
    public static void addHistory(ChatHistoryEntity chatHistoryEntity){
        if(chatHistory ==null){
            chatHistory = new ArrayList<>();
        }
        chatHistory.add(chatHistoryEntity);
    }
}
